/* 全局样式 */
.card-glow {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.gradient-bg {
    background: linear-gradient(135deg, #020617 0%, #1E293B 50%, #334155 100%);
}

.button-glow:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.prose-invert {
    color: #E2E8F0;
}

.prose-invert h1, .prose-invert h2, .prose-invert h3, .prose-invert h4 {
    color: #F8FAFC;
}

.prose-invert a {
    color: #8B5CF6;
}

.prose-invert a:hover {
    color: #6366F1;
}

.prose-invert blockquote {
    border-left-color: #8B5CF6;
}

.prose-invert code {
    background-color: #334155;
    color: #E2E8F0;
}

.prose-invert pre {
    background-color: #1E293B;
}

/* 图片点击放大功能 */
.image-zoom {
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-zoom:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -60px;
    right: -20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 导航项交互效果 */
.nav-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(127, 90, 240, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 90, 240, 0.2);
}

.nav-item:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(127, 90, 240, 0.3);
}

/* 当前页面标识 */
.nav-item.active {
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(127, 90, 240, 0.3);
    box-shadow: 0 0 20px rgba(127, 90, 240, 0.2);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #7f5af0, #6366f1);
    animation: activeGlow 2s ease-in-out infinite alternate;
}

@keyframes activeGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* 导航项悬停时的光晕效果 */
.nav-item:hover {
    background: rgba(127, 90, 240, 0.05);
    border-radius: 8px;
}

/* 点击时的波纹效果 */
.nav-item.ripple {
    position: relative;
    overflow: hidden;
}

.nav-item.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(127, 90, 240, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-item.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* 波纹效果 */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(127, 90, 240, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 导航背景流动效果 */
.nav-flow-bg {
    background: linear-gradient(45deg,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(99, 102, 241, 0.1) 25%,
    rgba(249, 115, 22, 0.1) 50%,
    rgba(99, 102, 241, 0.1) 75%,
    rgba(139, 92, 246, 0.1) 100%);
    background-size: 400% 400%;
    animation: flowAnimation 8s ease-in-out infinite;
}

@keyframes flowAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-item-flow {
    position: relative;
    overflow: hidden;
}

.nav-item-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-item-flow:hover::before {
    left: 100%;
}

.nav-glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

/* 自定义下拉菜单样式 */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    color: #E2E8F0;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 120px;
    transition: all 0.2s ease;
}

.dropdown-button:hover {
    background: rgba(71, 85, 105, 0.8);
    border-color: rgba(139, 92, 246, 0.5);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 8px 12px;
    color: #E2E8F0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.2);
}

.dropdown-item.selected {
    background: rgba(139, 92, 246, 0.3);
    color: #8B5CF6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        padding: 10px;
    }

    .modal-close {
        top: -50px;
        right: -10px;
    }
}

/* 搜索动画样式 */
.search-animate {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-fade-in {
    animation: fadeInUp 0.4s ease-out;
}

.search-fade-out {
    animation: fadeOutDown 0.3s ease-in;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* 搜索结果高亮 */
.search-highlight {
    background: linear-gradient(120deg, #7f5af0 0%, #6366f1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/*.step-container li p {*/
/*    display: inline;*/
/*}*/